package test;

/**
 * @author oldliu
 * @since 1.0
 */
public class Shuixianhua {
    public static void main(String[] args) {
        int n1;
        int n2;
        int n3;
        for(int a=100;a<1000;a++){
            n1=a%10;
            n2=(a/10)%10;
            n3=a/100;
            if(n1*n1*n1+n2*n2*n2+n3*n3*n3==a){
                System.out.println(a);
            }
        }

    }
}
